package main;

import java.util.ArrayList;
import java.util.List;

import navigation.Navigation;

import lejos.nxt.Button;
import lejos.nxt.LCD;
import protocol.Protocol.Direction;
import protocol.Protocol.Field;


public class Main {

	public static void main(String[] args) {

		Button.ENTER.addButtonListener(new MyButtonListener());

		Navigation comm = new Navigation(2.25f, 5.5f);

		List<Direction> myList = new ArrayList<Direction>();

		myList.add(Direction.NORTH);
		myList.add(Direction.EAST);

		Field[] fields = comm.lookAround(myList);

		LCD.clear();
		for (int i = 0; i < fields.length; i++) {
			LCD.drawString(fields[i].toString(), 0, i);
		}

		try {
			Thread.sleep(10000);
		} catch (InterruptedException e) {

			e.printStackTrace();
		}

	}

}
